<?php
/**
 *
 * conf.php
 * User: kalvin
 * Date: 2018/1/25
 * Time: 上午10:07
 */

namespace core\lib\conf;




use Whoops\Exception\ErrorException;

class conf
{
    public static function all($filename){
        $conf=CONF_PATH.$filename.'.php';
            if (is_file($conf)){
                $conf=include $conf;
                return $conf[$filename];
            }else{
                throw new ErrorException('配置文件不存在！');
            }
    }
}